/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.dao;

import com.sigmatrix.h5.entity.DisDealerAcct;
import com.sigmatrix.h5.exception.DaoException;
import com.sigmatrix.sc.jdbc.common.dao.Dao;

/**
 *@ClassName: DisDealersAcctDao
 *@Description: crm账号
 *@author MH
 *@date 2017年8月21日 下午9:33:46
 */
public interface DisDealerAcctDao extends Dao<DisDealerAcct,Integer>{
	
	/**
	 * 
	 *@Title: selectCountByContact
	 *@Description: 通过手机号查询数量
	 *@return int
	 *@author MH
	 *@date 2017年11月8日 下午2:31:14
	 *@param contact
	 *@return
	 */
	int selectCountByAccount(String account);
	
	/**
	 * 
	 *@Title: findByAccount
	 *@Description:通过账号查询
	 *@return DisDealerAcct
	 *@author MH
	 *@date 2018年1月16日 下午3:37:59
	 *@param account
	 *@return
	 */
	DisDealerAcct findByAccount(String account);
	
	/**
	 * 
	 *@Title: findSalesMan
	 *@Description:查询服务人员
	 *@return DisDealerAcct
	 *@author MH
	 *@date 2018年2月8日 下午6:23:15
	 *@param id
	 *@return
	 */
	DisDealerAcct findSalesMan(Integer id);
	
	
	/**
	 * 分销app合并分支开始-------------------------------------
	 */
	
	/**
	 *@Title: findById
	 *@Description: 根据id查询
	 *@return DisDealersAcctVo
	 *@date 2017年8月14日 下午11:43:59
	 *@param eseCode
	 *@param id
	 *@throws DaoException
	 */
	DisDealerAcct findById(final String eseCode,final Integer id) throws DaoException;
	
	/**
	 *@Title: findByAcct
	 *@Description: 根据账号查询
	 *@return DisDealersAcct
	 *@date 2017年8月15日 上午12:17:42
	 *@param eseCode
	 *@param account
	 *@throws DaoException
	 */
	DisDealerAcct findByAcct(final String eseCode,final String account) throws DaoException;
	
	/**
	 * 分销app合并分支结束-------------------------------------
	 */
}
